package com.ddwl.message.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author hemiaojun
 * @Date 2020/11/18 9:36
 */
public interface MessageConstant {
    /**
     * 是否推送通知栏 1：是
     */
    Integer PUSH=1;
    /**
     * 是否推送通知栏 0：否
     */
    Integer NOT_PUSH=0;

    String intent="intent:#Intent;action=android.intent.action.oppopush;launchFlags=0x14000000;component=io.dcloud.ddwl/io.dcloud.PandoraEntry;S.UP-OL-SU=true;S.title=%s;S.content=%s;S.payload=%s;end";

    /**
     * 默认离线有效时间，单位为毫秒
     */
    long DEFAULT_OFFLINE_EXPIRE_TIME = 24 * 3600 * 1000;

    /**
     * 默认网络环境：1为wifi，0为不限制网络环境
     */
    int DEFAULT_PUSH_NETWORK_TYPE = 0;

    @Getter
    @AllArgsConstructor
    enum PushIntentEnum{

        MESSAGE_DETAIL(1,"/pages/user/newsDetail?id=%s");

        private Integer code;
        private String intentUrl;
    }


}
